/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package MinaClient;

/**
 *
 * @author bambo_000
 */
public class MinaClientMessage implements CallbackMsg {
    public String msg;
    public boolean isReceived = false;
    
    public MinaClientMessage() {
        msg = null;
    }
    
    @Override
    public void setMessage(String msg) {
        this.msg = msg;
    }
    
    @Override
    public String receiveMessage() {
        return msg;
    }
    
    @Override
    public void setSatues (boolean isReceived) {
        this.isReceived = isReceived;
    }
    
    @Override
    public boolean getSatues () {
        return isReceived;
    }
}

interface CallbackMsg {
    public void setMessage(String msg);
    public String receiveMessage();
    public void setSatues (boolean isReceived);
    public boolean getSatues ();
}